import request from '@/utils/request'

// 查询基因位点相关频率列表
export function listFrequency(query) {
  return request({
    url: '/gene-face/frequency/list',
    method: 'get',
    params: query
  })
}

// 查询基因位点相关频率详细
export function getFrequency(id) {
  return request({
    url: '/gene-face/frequency/' + id,
    method: 'get'
  })
}

// 新增基因位点相关频率
export function addFrequency(data) {
  return request({
    url: '/gene-face/frequency',
    method: 'post',
    data: data
  })
}

// 修改基因位点相关频率
export function updateFrequency(data) {
  return request({
    url: '/gene-face/frequency',
    method: 'put',
    data: data
  })
}

// 删除基因位点相关频率
export function delFrequency(id) {
  return request({
    url: '/gene-face/frequency/' + id,
    method: 'delete'
  })
}
